/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    animation: fade-in 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d2129;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #1d2129;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #165dff;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #165dff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0e4cd9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

/* 表格样式 */
.table-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-content-message {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* 表格容器样式 */
#tutorsContainer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 添加助教按钮 */
.btn-add-tutor {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-add-tutor:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* 表格基础样式 */
.tutors-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* 表头样式 */
.table-header {
    padding: 1rem;
    text-align: left;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    position: relative;
}

.table-header:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* 单元格样式 */
.table-cell {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

/* 斑马条纹效果 */
.even-row {
    background: rgba(249, 250, 251, 0.7);
}

.odd-row {
    background: white;
}

/* 行悬停效果 */
.tutor-row:hover {
    background: rgba(238, 242, 255, 0.7) !important;
}

/* 移除按钮样式 */
.btn-remove-tutor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-tutor:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* 无数据提示样式 */
.no-tutors-message .table-cell {
    color: #6b7280;
    font-style: italic;
    padding: 1.5rem;
}

.no-tutors-row {
    color: #6b7280;
    font-style: italic;
}

/* 毛玻璃效果调整 */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* 渐变背景调整 */
.bg-gradient-to-br {
    background-image: linear-gradient(
        135deg,
        rgba(219, 234, 254, 0.7),  /* blue-50 with 70% opacity */
        rgba(224, 231, 255, 0.7)   /* indigo-50 with 70% opacity */
    );
}

/* 悬停效果 */
#refreshTutorsBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 引导卡片样式 */
.guide-card {
    transition: all 0.3s ease;
}

.guide-icon {
    transition: transform 0.3s ease;
}

.guide-card:hover .guide-icon {
    transform: rotate(10deg);
}

/* 空状态样式 */
.empty-state-guide {
    max-width: 400px;
    margin: 0 auto;
}

.btn-add-tutor {
    background-color: #3b82f6;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-add-tutor:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}